function downloadCanvasImage(canvasId, fileName) {
	//下载
  const canvas = document.getElementById(canvasId);
  const link = document.createElement('a');
  link.href = canvas.toDataURL('image/png');
  link.download = fileName;
  link.click();
}

function downloadImage(imageId, fileName) {
    const img = document.getElementById(imageId);
    const url = img.src;
    const a = document.createElement('a');
    a.href = url;
    a.download = fileName + '.png';
    a.click();
}

console.log("啦啦啦我是卖报的小行家~~~~~~")